<?php

namespace app\common\model\task;

use app\common\model\Model;
use app\common\model\User;
use traits\model\SoftDelete;

class Comment extends Model
{

    use SoftDelete;


    // 表名
    protected $name = 'task_comment';

    // 追加属性
    protected $append = [

    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
